<template>
  <div class="loading">
    <div class="spinner">
      <div class="bounce-1"></div>
      <div class="bounce-2"></div>
    </div>
  </div>
</template>

<style scoped>
.loading {
  position: fixed;
  left: 50%;
  top: 38%;
  transform: translateX(-50%);
  z-index: 100;
}

.spinner {
  width: 30px;
  height: 30px;
  position: relative;
  margin: 0 auto;
}

.bounce-1,
.bounce-2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;
  animation: bounce 2s infinite ease-in-out;
  background-color: #ff8105;
}

.bounce-2 {
  -webkit-animation-delay: -1s;
  animation-delay: -1s;
}

@keyframes bounce {
  0%,
  100% {
    transform: scale(0);
    -webkit-transform: scale(0);
  }

  50% {
    transform: scale(1);
    -webkit-transform: scale(1);
  }
}
</style>
